import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    },
  
      //mnA
      {
        path: '/mnA/inxq',
        name: 'mnA_inxq',
        component: () => import('./views/mnA/inxq.vue'),
      },
      {
        path: '/mnA/layout',
        name: 'mnA_layout',
        component: () => import('./views/mnA/layout.vue'),
        redirect:'/mnA/index',
        children:[
          {
            path: '/mnA/index',
            name: 'mnA_index',
            component: () => import('./views/mnA/index.vue'),
          },
          {
            path: '/mnA/cate',
            name: 'mnA_cate',
            component: () => import('./views/mnA/cate.vue'),
          },
          {
            path: '/mnA/cart',
            name: 'mnA_cart',
            component: () => import('./views/mnA/cart.vue'),
          },
          {
            path: '/mnA/my',
            name: 'mnA_my',
            component: () => import('./views/mnA/my.vue'),
          },
        ]
      },
     
     

    
  ]
})
